/*
 Copyright To change this template, choose Tools | Templates
 Copyright and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.PackageDetailDao;
import com.click.app.model.PackageDetail;
import com.click.app.service.PackageDetailManager;
import java.util.List;



/**
 * @author Joel Chuca Condo
 * @date 04/05/2009
 */
public class PackageDetailManagerImpl extends GenericManagerImpl<PackageDetail, Long> implements PackageDetailManager {

    private PackageDetailDao packageDetailDao;

    public PackageDetailManagerImpl(PackageDetailDao packageDetailDao){
        super(packageDetailDao);
        this.packageDetailDao = packageDetailDao;
    }

    public List<PackageDetail> packagesAvailable() {
        return packageDetailDao.packagesAvailable();
    }

    public Long getLastId(){
        return packageDetailDao.getLastId();
    }

    public List<PackageDetail> getByPackageName(String packageName){
        return packageDetailDao.getByPackageName(packageName);
    }
    public List<String> getUniqueName(){
        return packageDetailDao.getUniqueName();
    }
    public List<PackageDetail> getByPackageNameAndRealQuantNoCero(String packageName){
        return packageDetailDao.getByPackageNameAndRealQuantNoCero(packageName);
    }

}
